package com.github.shiqiyue.app.modules.sys.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.shiqiyue.app.api.sapi.req.user.UserPageReq;
import com.github.shiqiyue.app.modules.sys.entity.User;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author wenyao.wu
 * @since 2018-10-11
 */
public interface IUserService extends IService<User> {

    /***
     * 通过[name]查询一个User
     * @param name
     * @return
     */
    User findByName(String name);


    Integer countByName(String name);

    IPage<User> page(UserPageReq query);

    Integer countByName(String name, Long id);


}
